﻿@model List<CMS.BL.Entity.tbl_Content>
@section sidebar {
    @Html.Partial("../Partials/SearchPanel")
    @Html.Action("TestimonialsPartial", "Website")
    @Html.Action("ContactUsPartial", "Website")
}
<div class="searchresults">
    <h1>@ViewBag.Header</h1>
    @if (!string.IsNullOrEmpty(ViewBag.NoNewsFound))
    {
        <span class="no-results">@ViewBag.NoNewsFound</span>
    }
    @foreach (var result in Model)
    {
        <div class="row">
            <h2>
                <a href="@((result.tbl_SiteMap.tbl_ContentType.CTP_Value == CMS.BL.ContentType.Blog.ToString() ? ViewBag.BlogUrl : String.Empty) + result.tbl_SiteMap.SM_URL)" title="@result.C_Title">@result.C_Title</a></h2>
            <p>@result.C_Description</p>
            <p>@result.tbl_SiteMap.SM_Date.GetValueOrDefault(result.C_ModificationDate).ToLongDateString() at @result.tbl_SiteMap.SM_Date.GetValueOrDefault(result.C_ModificationDate).ToShortTimeString()</p>
            <p>@Html.Action("Breadcrumbs", "Website", new { url = result.tbl_SiteMap.SM_URL })</p>
        </div>
    }
</div>
